package tool

func PageLimit(page, limit int) (int, int) {
	if page <= 0 {
		page = 1
	}

	if limit > 1000 {
		limit = 1000
	}

	if limit <= 0 {
		limit = 10
	}
	return page, limit
}
